<meta charset="utf-8">
<?php

class User
{	
	public $name;
	public function __construct($name)
	{
		$this->name=$name;
	}
	function getName(){
		return $this->name;
	}
}

$lisi= new User('lisi');
echo $lisi->getName();
$wangwu = new User('wangwu');
echo $wangwu ->getName();

?>